package com.amex.uam.util;

import java.util.ResourceBundle;

public class UAMProp {

	private static ResourceBundle prop; 
	static {
		prop = ResourceBundle.getBundle("uam");
	}
	
	public static String getProperty(String name) {
		try {
			return prop.getString(name);
		} catch (Throwable t) {
			t.printStackTrace();
		}
		return null;
	}
	
	public static String getIServerName(){
		return getProperty("mstr-server");
	}
	public static String getIServerPort(){
		return getProperty("mstr-port");
	}
	public static String getLoginName() {
		return getProperty("mstr-usr");
	}
	public static String getPassword() {
		return getProperty("mstr-pwd");
	}
	
	public static void main(String[] args) {
		System.out.println(getIServerName());
		System.out.println(getIServerPort());
		System.out.println(getLoginName());
		System.out.println(getPassword());
	}
}
